home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / print / gs261sr1.zip / GCONFIG.C < prev    next >
C/C++ Source or Header  |  1993-05-12  |  2KB  |  72 lines

  1. /* Copyright (C) 1989, 1992, 1993 Aladdin Enterprises.  All rights reserved.
  2.  
  3. This file is part of Ghostscript.
  4.  
  5. Ghostscript is distributed in the hope that it will be useful, but
  6. WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  7. to anyone for the consequences of using it or for whether it serves any
  8. particular purpose or works at all, unless he says so in writing.  Refer
  9. to the Ghostscript General Public License for full details.
  10.  
  11. Everyone is granted permission to copy, modify and redistribute
  12. Ghostscript, but only under the conditions described in the Ghostscript
  13. General Public License.  A copy of this license is supposed to have been
  14. given to you along with Ghostscript so you can know your rights and
  15. responsibilities.  It should be in a file named COPYING.  Among other
  16. things, the copyright notice and this notice must be preserved on all
  17. copies.  */
  18.  
  19. /* gconfig.c */
  20. /* Installed device table for Ghostscript */
  21. #include "ghost.h"
  22. /*
  23.  * Since we only declare variables of type gx_device *,
  24.  * it should be sufficient to define struct gx_device_s as
  25.  * an abstract (undefined) structure.  However, the VAX VMS compiler
  26.  * isn't happy with this, so we have to include the full definition.
  27.  */
  28. #include "gxdevice.h"
  29.  
  30. /* Declare the devices as extern. */
  31. #define device_(dev) extern far_data gx_device dev;
  32. #include "gconfig.h"
  33. #undef device_
  34.  
  35. /* Set up the device table. */
  36. #define device_(dev) &dev,
  37. gx_device *gx_device_list[] = {
  38. #include "gconfig.h"
  39.     0
  40. };
  41. #undef device_
  42.  
  43. /* Set up the .ps file name string array. */
  44. /* We fill in the lengths at initialization time. */
  45. #define ref_(t) struct { struct tas_s tas; t value; }
  46. #define string_(s)\
  47.  { {(t_string<<r_type_shift)|a_readonly, 0}, s },
  48. #define psfile_(fns) string_(fns)
  49. ref_(const char *) gs_init_file_array[] = {
  50. #include "gconfig.h"
  51.     string_(0)
  52. };
  53. #undef psfile_
  54.  
  55. /* Here is where the library search path and the name of the */
  56. /* initialization file are defined.  We supply defaults just in case */
  57. /* someone compiles the file without the proper command line flags. */
  58. #ifndef GS_LIB_DEFAULT
  59. #  define GS_LIB_DEFAULT ""
  60. #endif
  61. #ifndef GS_INIT
  62. #  define GS_INIT "gs_init.ps"
  63. #endif
  64. const char *gs_lib_default_path = GS_LIB_DEFAULT;
  65. const char *gs_init_file = GS_INIT;
  66.  
  67. /* Some C compilers insist on executable code here, so.... */
  68. void
  69. gconfig_dummy(void)
  70. {
  71. }
  72.